package org.grayrabbit.cloud.utils;

import java.io.PrintWriter;
import java.io.StringWriter;

public class Console {
	public static String module;

	public Console(String module) {
		Console.module = module + "> ";
		print();
	}

	public static void println(String msg) {
		System.out.println(msg);
		System.out.print(module);
	}

	public static void print() {
		System.out.print(module);
	}

	public static void println(Throwable e) {
		StringWriter sw = new StringWriter();
		PrintWriter pw = new PrintWriter(sw);
		e.printStackTrace(pw);
		pw.close();
		println(sw.toString());
	}
	public void setCommandState(String usr, boolean orginPwd) {
		// TODO Auto-generated method stub
		
	}
	
	public String getCurrentUser(){
		return "";
	}

}
